
@echo off
set curpath=%~dp0

::当前路径
set prjpath=%curpath%  
::set git="C:\Program Files\Git\bin\git"
set git=git.exe

set prjName=Framework
set prjUrl=https://gitee.com/zhuangyuetao/Framework.git

:: 创建目录
if not exist %prjpath% (  
	mkdir %prjpath%
)
cd %prjpath%


:: 如果没有git库, 新建
if not exist %prjpath%.git (  
	%git% init
	%git% remote add origin %prjUrl%
	%git% pull origin master
)

:: 更新
%git% pull origin master

pause

